package com.pcbly.web.business.chart;

import java.util.List;

import com.pcbly.web.bean.chart.ChartDataSourceBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.persistence.chart.ChartDataSourceDao;

public class ChartDataSourceServiceImp extends
		BaseServiceImp<ChartDataSourceBean> implements ChartDataSourceService {

	public ChartDataSourceServiceImp(){
		super();
	}
	protected ChartDataSourceDao chartDataSourceDao;
	
	
	public void setChartDataSourceDao(ChartDataSourceDao chartDataSourceDao) {
		this.chartDataSourceDao = chartDataSourceDao;
	}

	@Override
	public int deleteChartDataSourceBean(String id) throws Exception {
		// TODO Auto-generated method stub
		return chartDataSourceDao.deleteChartDataSourceBean(id);
	}

	@Override
	public int insertChartDataSourceBean(ChartDataSourceBean bean)
			throws Exception {
		// TODO Auto-generated method stub
		return chartDataSourceDao.insertChartDataSourceBean(bean);
	}

	@Override
	public ChartDataSourceBean queryChartDataSourceBeanById(String id)
			throws Exception {
		// TODO Auto-generated method stub
		return chartDataSourceDao.queryChartDataSourceBeanById(id);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List queryDataTableByBean(ChartDataSourceBean bean) throws Exception {
		// TODO Auto-generated method stub
		return chartDataSourceDao.queryDataTableByBean(bean);
	}

	@Override
	public List<ChartDataSourceBean> queryList() throws Exception {
		// TODO Auto-generated method stub
		return chartDataSourceDao.queryList();
	}

	@Override
	public int updateChartDataSourceBean(ChartDataSourceBean bean)
			throws Exception {
		// TODO Auto-generated method stub
		return chartDataSourceDao.updateChartDataSourceBean(bean);
	}

	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
